import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';

import {AppRoutingModule} from './app-routing.module';

import {HttpModule, JsonpModule} from '@angular/http';

import {HttpService} from './utils/http.service';

import {AppComponent} from './app.component';
import {IndexComponent} from './index/index.component';
import {HeaderComponent} from './commen/header/header.component';
import {FooterComponent} from './commen/footer/footer.component';
import { CarouselComponent } from './commen/carousel/carousel.component';
import { CartComponent } from './cart/cart.component';
import { DetailComponent } from './detail/detail.component';
import { ListComponent } from './list/list.component';
import { LoginComponent } from './login/login.component';
import { RegisterComponent } from './register/register.component';
import { UserCenterComponent } from './user-center/user-center.component';
import { NotFoundComponent } from './commen/not-found/not-found.component';
import { LookforwardComponent } from './lookforward/lookforward.component';
import { MyCollectComponent } from './my-collect/my-collect.component';


@NgModule({
  declarations: [
    AppComponent,
    IndexComponent,
    HeaderComponent,
    FooterComponent,
    CarouselComponent,
    CartComponent,
    DetailComponent,
    ListComponent,
    LoginComponent,
    RegisterComponent,
    UserCenterComponent,
    NotFoundComponent,
    LookforwardComponent,
    MyCollectComponent,
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    HttpModule,
    JsonpModule
  ],
  providers: [HttpService],
  bootstrap: [AppComponent]
})
export class AppModule {
}
